package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

// 资源库
@Data
// @EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_resource_library")
public class ResourceLibrary implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 用户id
    private Long userId;

    // 名称
    private String name;

    // 上传来源：1.app，2.后台
    private Integer site;

    // 创建时间
    private Integer createTime;

    // 状态：0等待上传，1已上传
    private Integer status;

}
